updating oE has_console

Information

has_console

include console.e 
namespace console 
public function has_console() 

determines if the process has a console (terminal) window.

Returns:

An atom,

  • 1 if there is more than one process attached to the current console,
  • 0 if a console does not exist or only one process (Euphoria) is attached to the current console.
Comments:
  • On Unix systems always returns 1 .
  • On Windows client systems earlier than Windows XP the function always returns 0 .
  • On Windows server systems earlier than Windows Server 2003 the function always returns 0 .
Example 1:
include std/console.e 
 
if has_console() then 
    printf(1, "Hello Console!") 
end if 
Not Categorized, Please Help

Search



Quick Links

User menu

Not signed in.

Misc Menu